<?php if(!defined('EMLOG_ROOT')) {exit('error!');}?>
<?php if($pageurl) { ?>
<div  class="ui-bar ui-bar-c arrayBtn" data-position="inline">
<div id="pagenavi">
 <?php echo $pageurl;?>
</div>
</div>
<?php } ?>
<?php 
foreach($comment as $value):
$ishide = ISLOGIN === true && $value['hide']=='y'?'<font color="red" size="1">[待审]</font>':'';
?>
<?php if(ISLOGIN === true): ?>
<div data-role="navbar" class="uiddiv ui-bar-c moderatorBtn">
	<ul>
		<li><a href="./?action=delcom&id=<?php echo $value['cid'];?>" data-transition="none">删除</a></li>
		<li><a href="./?action=showcom&id=<?php echo $value['cid'];?>" data-transition="none">审核</a></li>
		<li><a href="./?action=hidecom&id=<?php echo $value['cid'];?>" data-transition="none">屏蔽</a></li>
	</ul>
</div>
<?php endif;?>
<div data-role="content" class="contentDiv">
      	<div class="user" <?php if (ISLOGIN === true):?> style="border:none" <?php endif;?>>
        		<span class="userFloor">
            	<em><a href="./?action=reply&cid=<?php echo $value['cid'];?>" title="回复" >回复</a></em>
                </span>
				<?php if($isGravatar == 'y'): ?>
            	<span class="userAvatar">
				<img src="<?php echo getGravatar($value['mail']); ?>">
				</span>
				<?php endif; ?>
<span class="userName">
<a href=""  data-transition="none">
<?php if(ISLOGIN === true): ?>
<?php echo $value['poster']; ?>
<?php else:?>
<?php echo $value['name']; ?>
<?php endif;?>
</a>
</span>
<br/>
<span class="userBtn">
<?php if(ISLOGIN === true): ?>
<a><?php echo $value['date']; ?></a>
 <?php else:?>
<a><?php echo gmdate('Y年m月d日', $value['date']);?></a>	
<?php endif;?>
</span>
</div>  
<div class="pbody">
<div id="postmessage" class="postmessage"><?php echo preg_replace("/\{smile:(([1-4]?[0-9])|50)\}/",'<img src="'.BLOG_URL.'content/plugins/face/face/$1.gif"  />',$value['content']); ?></div>
</div>
<?php if(ISLOGIN === true): ?>
<div  style="width:auto;height:40px;border-top:1px solid #ccc;line-height:40px;text-align:center; vertical-align:middle; ">
 所属日志：<?php echo $value['title']; ?>
</div>  
<?php endif;?>
<?php endforeach; ?>
</div>
<div class="ui-bar ui-bar-c arrayBtn" data-position="inline" >
<div id="pagenavi">
<?php echo $pageurl;?>
</div>
</div>
